package com.xiaozhengkeji.mc.plugins.cdkey.service;

import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

public class CDKeyService {


    public void consoleActuator(String c, Player p) {

        c = c.replaceAll("%player%", p.getName());
        c = c.replaceAll("&", "§");
        Bukkit.dispatchCommand(Bukkit.getConsoleSender(), c);


/*        new BukkitRunnable() {

            @Override
            public void run() {
                Bukkit.dispatchCommand(Bukkit.getConsoleSender(), c);
            }
        }.runTaskAsynchronously(Main.getProvidingPlugin(Main.class));*/
    }
}
